Add Pattern Recall puzzle framework and integrate into Perbug gameplay - #384
Open
ercmine wants to merge 2 commits into
Open
Add Pattern Recall puzzle framework and integrate into Perbug gameplay#384ercmine wants to merge 2 commits into
ercmine wants to merge 2 commits into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
puzzles/perbug_puzzle_framework.dartwith seed handling, deterministic RNG (seededRandom), difficulty/result types, lifecycle events, and generator/validator abstractions.pattern_recall_generator.dart,pattern_recall_models.dart, andpattern_recall_validator.dartto produce deterministic sequences, difficulty knobs, distractions, and validation logic.PerbugGameStateand adding methods toPerbugGameControllertolaunch,start preview,step preview,complete preview,input symbols,retry,abandon, andclosepattern sessions, and emitpuzzleEventsandlifecycleentries.pattern_recall_puzzle_sheet.dartand wire aLaunch Pattern Recallbutton inperbug_game_page.dartto present and interact with the puzzle from the Perbug UI.Testing
app/test/perbug_pattern_recall_test.dartthat exercise deterministic generation, node uniqueness, difficulty tuning, validator tolerance, controller lifecycle and input blocking, and reuse of in-progress sessions; the file contains 6 tests run viaflutter test.perbug_pattern_recall_test.dartpassed successfully.Codex Task